#!/bin/bash
path="https://gitee.com/scientificworld/touhou_mac_integration/raw/master/tool/crossover"
file="crossover.zip"
dir="CrossOver.app/Contents/SharedSupport"
cd "$(dirname "$0")"
mkdir -p tmp
cd tmp
curl -o "$file" "$(curl -s "$path/link.txt")"
unzip "$file"
rm -r ../crossover
mv "$dir/crossover" ..
cd ..
rm -r tmp
